package com.lagou.service;

import com.github.pagehelper.PageInfo;
import com.lagou.domain.PromotionAd;
import com.lagou.domain.PromotionAdVO;

import java.util.List;

public interface PromotionAdService {
    /*
    分页查询广告信息
    PromotionAdVo：存储这分页的信息
    */
    public PageInfo<PromotionAd> findAllPromotionAdByPage(PromotionAdVO promotionAdVo);

    /*新增广告信息*/
    public void savePromotionAd(PromotionAd promotionAd);

    /*修改广告信息*/
    public void updatePromotionAd(PromotionAd promotionAd);

    /*
    回显广告信息
    */
   public PromotionAd findPromotionAdById(int id);

    /*点击按钮，实现状态的动态上下线*/
    void updatePromotionAdStatus(Integer id,Integer status);
}
